package com.kede.pay.service;

import com.kede.pay.domain.TransferLog;
import com.kede.pay.pojo.po.PayPO;
import com.kede.pay.pojo.po.VipPayPO;
import com.kede.pojo.ResHttp;
import com.wechat.pay.java.service.transferbatch.model.*;

import java.math.BigDecimal;
import java.util.List;

/***
 ** @Author:Pr.li
 ** @Description:
 ** @Date: create in 2023/5/4 14:43
 ***/
public interface WxPayService {

    /** 通过微信批次单号查询批次单 */
    TransferBatchEntity getTransferBatchByNo(GetTransferBatchByNoRequest request);
    /** 通过商家批次单号查询批次单 */
    TransferBatchEntity getTransferBatchByOutNo(GetTransferBatchByOutNoRequest request);
    /** 发起商家转账 */
    InitiateBatchTransferResponse initiateBatchTransfer(List<TransferLog> request);
    /** 通过微信明细单号查询明细单 */
    TransferDetailEntity getTransferDetailByNo(GetTransferDetailByNoRequest request);
    /** 通过商家明细单号查询明细单 */
    void getTransferDetailByUserid(Integer userid);

    BigDecimal getWithdrawalRate();

    ResHttp vipPayment(VipPayPO vipPayPO);


    ResHttp payment(PayPO payPO);
}
